import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 代码类型查询
export const TypeQuery = () => {
    return service.get<any,any>(`/bioDeptWrok/getCpBaseHeadQuery`)
}

// 类型明细查询
export const typeListQuery = (baseType:string) => {
    return service.get<any,any>(`/bioDeptWrok/getCpBaseDetQuery?baseType=${baseType}`)
}

// 新增
export const AddtypeListQuery = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/cpBaseHeadAdd`,parms)
}

// 删除
export const deletetypeListQuery = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/cpBaseHeadDelete?baseType=${parms.baseType}`)
}

// 新增
export const AddtypeListQueryList = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/cpBaseDetAdd`,parms)
}

// 删除
export const deletetypeListQueryList = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/cpBaseDetDelete?baseType=${parms.baseType}&itemCode=${parms.itemCode}`)
}